
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>缺陷管理系统</title>
<meta name="keywords" content="缺陷管理系统<">
<meta name="description" content="缺陷管理系统">
<base href="${pageContext.request.contextPath}/"> 
<link rel="shortcut icon" href="favicon.ico">
<link
	href="css/bootstrap.min.css-v=3.3.5.css"
	rel="stylesheet">
<link
	href="css/font-awesome.min.css-v=4.4.0.css"
	rel="stylesheet">
<link href="css/animate.min.css"
	rel="stylesheet">
<link
	href="css/style.min.css-v=4.0.0.css"
	rel="stylesheet">
<base target="_self">

</head>

<body class="gray-bg">

	<div class="ibox-content">
		<form class="form-horizontal m-t" id="signupForm"
			action="user/uaddBug"
			target="_self" method="post" >
		<!-- 	<input type="hidden" name="flag" value="2"> --> <input
				type="hidden" name="bug_id" value="${bug.bug_id }">

			<div class="form-group">
				<label class="col-sm-3 control-label">缺陷标题：</label>
				<div class="col-sm-8">
					<input name="summary" id="summary" required="required"
						value="${bug.summary }" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">缺陷项目：</label>
				<div class="col-sm-8">
					<select id="pro_id" name="pro_id" class="form-control" >

						<c:forEach items="${requestScope.projects }" var="project">
							<c:choose>
								<c:when test="${bug.project.pro_id == project.pro_id }">
									<option value="${project.pro_id }" selected="selected">${project.pro_name}</option>
								</c:when>
								<c:otherwise>
									<option value="${project.pro_id }">${project.pro_name }</option>
								</c:otherwise>
							</c:choose>
						</c:forEach>
					</select>
				</div>
			</div>


			<div class="form-group">
			<label class="col-sm-3 control-label" id="ba"  onclick="pon()"><a
					title="点击查看">严重级别：</a></label>
			
				<div class="col-sm-8">
					<select class="form-control" id="pon_id" name="pon_id"
						class="select">

						<c:forEach items="${requestScope.ponderances }" var="ponderance">
							<c:choose>
								<c:when test="${bug.ponderance.pon_id == ponderance.pon_id }">
									<option value="${ponderance.pon_id }" selected="selected">${ponderance.pon_name}</option>
								</c:when>
								<c:otherwise>
									<option value="${ponderance.pon_id }">${ponderance.pon_name }</option>
								</c:otherwise>
							</c:choose>
						</c:forEach>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label" id="ba"  onclick="toalert()"><a
					title="点击查看">优先级：</a></label>
				<div class="col-sm-8">
					<select class="form-control" id="priority" name="priority"
						class="select">

						<option value="Immediate">Immediate</option>
						<option value="Urgent">Urgent</option>
						<option value="High">High</option>
						<option value="Normal">Normal</option>
					</select>
				</div>
			</div>




			<div class="form-group">
				<label class="col-sm-3 control-label">缺陷状态：</label>
				<div class="col-sm-8">
					<select id="bug_status" name="bug_status" class="form-control">
  
								<option value="1" selected="selected">New</option>
 	
					</select>

				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">操作环境：</label>
				<div class="col-sm-8">
					<textarea name="bug_os" id="bug_os"
						placeholder="操作系统，浏览器，网络  
如：windows10 chrome55.4 wifi"
						required="required" class="form-control" class="description">${bug.bug_os}</textarea>

				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">步骤描述：</label>
				<div class="col-sm-8">
					<textarea name="bug_description" id="bug_description"
						required="required" style="height: 200px;"
						placeholder="操作步骤，预期结果，实际结果&#xA如：步骤 &#xA 1. 在浏览器地址栏输入'www.baidu.com'&#xA 2.点击进入百度页面&#xA 3.点击右上角的分享按钮&#xA 预期结果:&#xA 分享成功&#xA 实际结果:&#xA 分享失败"
						class="form-control">${bug.bug_description }</textarea>

				</div>
			</div>


			<div class="form-group">
				<div class="col-sm-8 col-sm-offset-3">
					<input class="btn btn-primary" type="submit" value="提交"/>
				</div>
			</div>
		</form>
	</div>
	</div>
	</div>
	</div>
	</div>
	<script
		src="js/jquery.min.js-v=2.1.4"></script>
	
 <script type="text/javascript" src="js/jquery.1.11.1.js"></script>
 <script type="text/javascript" src="layer/layer.js"></script>
<script>
 function toalert(){

	 //iframe层
	 layer.open({
	   type: 2,
	   title: '缺陷优先级',
	   shadeClose: true,
	   shade: 0.8,
	   area: ['80%', '60%'],
	   content: 'images/pon.jpg' //iframe的url
	 }); 
}
 function pon(){

	 //iframe层
	 layer.open({
	   type: 2,
	   title: '缺陷优先级',
	   shadeClose: true,
	   shade: 0.8,
	   area: ['80%', '60%'],
	   content: 'user/ponderance' //iframe的url
	 }); 
}
 </script>
</body>
</html>